﻿using KinonekoSoftware.CodariaDB.Documents.Shenanigans.Forum;

namespace KinonekoSoftware.Studio.Models.Shenanigans.Forums
{
    public sealed class ImageMSG : PlainTextMSG
    {

        private string _selected;

        protected override PlainTextBase GetPlainText() => (ImageForumObject)Target;

        public void Update() => Selected = Images.FirstOrDefault();

        public string Selected
        {
            get => _selected;
            set => SetValue(ref _selected, value);
        }

        public ObservableCollection<string> Images { get; init; }

        public bool IsMultiple => Images.Count > 1;
    }
}